# Contributor: Edd Salkield <edd@salkield.uk>
# Maintainer: Edd Salkield <edd@salkield.uk>
pkgname=vit
pkgver=2.2.0
pkgrel=0
pkgdesc="Lightweight, fast, curses-based front end to Taskwarrior"
url="https://github.com/vit-project/vit"
arch="noarch"
license="MIT"
depends="python3 py3-tasklib py3-urwid"
makedepends="py3-setuptools"
source="https://github.com/vit-project/vit/archive/v$pkgver/vit-v$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	export TERM=xterm-256color
	python3 -m unittest -v
}

package() {
	python3 setup.py install \
		--prefix=/usr \
		--root="$pkgdir" \
		--single-version-externally-managed
}

sha512sums="
6efbf4fa3d2d6b188f8ad5152a1cd949d1d1c263de19669087ba439a8248c9dfe9354e70b83d945ae3edd44fb9cc0d9a4bf4331a5aaacfd64fdece2cb4b9454e  vit-v2.2.0.tar.gz
"
